package com.alibaba.algo.domain.user;

import com.alibaba.algo.cooperation.feign.vo.res.SysCarouselResponseVO;
import com.alibaba.algo.cooperation.feign.vo.res.SysFileResponseVO;
import com.alibaba.algo.core.base.BaseDomain;
import com.alibaba.algo.dao.user.SysFileMapper;
import com.alibaba.algo.entity.user.SysFile;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @ClassName SysFileDomain
 * @Description 系统文件domain
 * @Author wangke
 * @Date 2021/8/10 20:50
 */
@Component
public class SysFileDomain extends BaseDomain<SysFile> {

    @Autowired
    private SysFileMapper sysFileMapper;

    public List<SysFileResponseVO> getListByIds(List<Long> ids, Integer fileType){
        return sysFileMapper.getListByIds(ids,fileType);
    }

    public SysCarouselResponseVO getSysFileById(Long id){
        return sysFileMapper.getSysFileById(id);
    }
}
